package com.businessportal.web.Test;

import com.businessportal.web.common.CryptoHelper;

/**
 * Created by Vadim on 11/28/14.
 */
public class TestCryptoHelper {

    public static void main(String[] args) {
        try {
            String result = CryptoHelper.getInstance().decrypt(CryptoHelper.getInstance().encrypt("TestData"));

            String encoded = CryptoHelper.getInstance().encodeToHex("gentest.device@gmail.com");
            String result1 = CryptoHelper.getInstance().decodeFromHex("b4d8fd9c01df0822e1a37b728be2e4c29857a8f1564178b1a90b93de1e49a0be");

            System.out.println(result);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
